package com.ss.whisper2.pojo;

public class Result<T>{
    private int code;
    private String msg;
    private T data;

    public Result(State state,T data) {
        this.code=state.getCode();
        this.msg=state.getMsg();
        this.data = data;
    }

    public Result(State state) {
        this.code=state.getCode();
        this.msg=state.getMsg();
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public T getData() {
        return data;
    }
}
